### Project 22 Soil Module **1.Introduction** This is an easy moisture sensor detecting the moisture of soil. If soil is lack of water, the output analog value decreases; if not, the value increases. In this project, we use graphical programming to detect analog value of signal port of this sensor, displaying it on serial monitor. **2.Materials Required** 1. KEYESTUDIO UNO Control Board *1 2. V5 Sensor Shield*1 3. Soil Module*1 4. Female to Female Dupont Line*3 **3.Connection Diagram** ![](media/image-20251201170747697.png) ![](media/image-20251201170757610.png) **4.Sample Code** ```c void setup() { Serial.begin(9600); } void loop() { Serial.print("sensorValue:"); Serial.print(analogRead(0)); Serial.println(); delay( 1000 ); } ``` **5.Result** After downloading program, we can use soil module to detect moisture in the soil. Open serial monitor , we can see corresponding value. This is a printscreen under normal situation. ![](media/image-20251201170844480.png) This is a printscreen when putting soil module into water. ![](media/image-20251201170909714.png)